<ng-container *ngIf="params.type === 'V3'">
  <ng-container *ngIf="params.node.data.severity === 'High'">
    <div class="progress w-100 d-inline-flex" style="height: 25px">
      <div
        [attr.aria-valuenow]="params.node.data.score_v3"
        [style]="'width: ' + params.node.data.score_v3 * 10 + '%'"
        aria-valuemax="10"
        aria-valuemin="0"
        aria-label="Score(V3)"
        class="progress-bar bg-danger"
        role="progressbar">
        {{ params.node.data.score_v3 }}
      </div>
    </div>
  </ng-container>
  <ng-container *ngIf="params.node.data.severity === 'Medium'">
    <div class="progress w-100 d-inline-flex" style="height: 25px">
      <div
        [attr.aria-valuenow]="params.node.data.score_v3"
        [style]="'width: ' + params.node.data.score_v3 * 10 + '%'"
        aria-valuemax="10"
        aria-valuemin="0"
        aria-label="Score(V3)"
        class="progress-bar bg-warning"
        role="progressbar">
        {{ params.node.data.score_v3 }}
      </div>
    </div>
  </ng-container>
</ng-container>
<ng-container *ngIf="params.type === 'V2'">
  <ng-container *ngIf="params.node.data.severity === 'High'">
    <div class="progress w-100 d-inline-flex" style="height: 25px">
      <div
        [attr.aria-valuenow]="params.node.data.score"
        [style]="'width: ' + params.node.data.score * 10 + '%'"
        aria-valuemax="10"
        aria-valuemin="0"
        aria-label="Score"
        class="progress-bar bg-danger"
        role="progressbar">
        {{ params.node.data.score }}
      </div>
    </div>
  </ng-container>
  <ng-container *ngIf="params.node.data.severity === 'Medium'">
    <div class="progress w-100 d-inline-flex" style="height: 25px">
      <div
        [attr.aria-valuenow]="params.node.data.score"
        [style]="'width: ' + params.node.data.score * 10 + '%'"
        aria-valuemax="10"
        aria-valuemin="0"
        aria-label="Score"
        class="progress-bar bg-warning"
        role="progressbar">
        {{ params.node.data.score }}
      </div>
    </div>
  </ng-container>
</ng-container>
